module.exports = app => {
    const { mongoose } = app;
    const { Schema } = mongoose;
    const UserOrderSchema = new Schema({
        user: {
            type: String,
        },
        orders: {
            type: [String]
        },
    })
    return mongoose.model('UserOrder', UserOrderSchema)
}